package com.ywu.application.standard.dataSource.data;

import com.ywu.application.standard.dataSource.dto.YwuDataSourceDto;
import com.ywu.application.standard.dataSource.entity.YwuDataSourceEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName YwuDataSourceRepository
 * @Description TODO
 * @Author GroundDemo
 * @Date 2024/10/22 22:55
 * @Version 1.0
 **/
@Mapper
public interface YwuDataSourceRepository {
    YwuDataSourceEntity getEntity(@Param("model") YwuDataSourceEntity search);

    void insertDataSource(@Param("model") YwuDataSourceEntity ywuDataSourceEntity);

    void updateDataSource(@Param("model") YwuDataSourceEntity ywuDataSourceEntity);

    void deleteDataSource(@Param("model") YwuDataSourceEntity ywuDataSourceEntity);

    int queryCount(@Param("model") YwuDataSourceDto ywuDataSourceDto);

    List<YwuDataSourceEntity> queryPage(@Param("model") YwuDataSourceDto ywuDataSourceDto);

    void updateShare(@Param("model") YwuDataSourceEntity ywuDataSourceEntity);
}
